package com.jf.identity.filter;

import com.jf.identity.config.ExamConfig;
import com.jf.identity.util.Params;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
 * @author FCG
 */
@Component
public class ExamIdHandler implements ParamHandler<Object,String> {
    private final ExamConfig examConfig;
    @Autowired
    public ExamIdHandler(ExamConfig examConfig) {
        this.examConfig = examConfig;

    }

    @Override
    public Object handle(String examId, HttpServletRequest request, HttpServletResponse response) {
        Params.isBlank(examId, "examId");
        //TODO 进行examId验证
        return null;
    }
}
